package com.example.basecore.core;

import com.example.basecore.dto.Command;
import org.springframework.stereotype.Component;

import java.lang.annotation.*;

/**
 * @author ycd0075
 * @date 2024-01-25 22:05
 */
@Inherited
@Component
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface InterceptorAnnotation {

    Class<? extends Command> command();

    int order() default 0;

}
